const ajax = window.ajaxBusinessContract;

//押金统计
export const apiDepositStatistics = (params) => ajax.request(`/v1/business/deposit/statistics`, 'post', params, {
  showLoading: true
});

//押金列表
export const apiDepositList = (params) => ajax.request(`/v1/business/deposit/list`, 'post', params, {
  showLoading: true
});

//押金导出
export const apiDepositExport = (params) => ajax.download(`/v1/business/deposit/export`, params, {
  showLoading: true,
  responseType: 'blob'
});

//账单详情
export const apiBillInfo = (param) => ajax.request(`/v1/business/bill/detail`, 'post', param, {
  showLoading: true
});

//押金退款
export const apiDepositDepositReturn = (param) => ajax.request(`/v1/business/deposit/depositReturn`, 'post', param, {
  showLoading: true
});

//押金核销
export const apiDepositWriteOff = (param) => ajax.request(`/v1/business/deposit/depositWriteOff`, 'post', param, {
  showLoading: true
});

//押金收款
export const apiDepositCollection = (param) => ajax.request(`/v1/business/deposit/work/collection`, 'post', param, {
  showLoading: true
});

//押金返还
export const apiDepositWorkReturn = (param) => ajax.request(`/v1/business/deposit/work/return`, 'post', param, {
  showLoading: true
});


